package com.dp.appi.service.impl;

import com.dp.appi.dao.MaterialDao;
import com.dp.appi.service.MaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by xiaoji on 2016/5/12.
 */
@Service
public class MaterialServiceImpl implements MaterialService {
    @Autowired
    private MaterialDao materialDao;

    /**
     * 材料列表接口
     *
     * @param name 材料名称
     * @param s    开始序列
     * @param n    获取条数
     * @return
     */
    @Override
    public List<Map<String, Object>> materialList(String type, String name, String versionid, Integer s, Integer n) {
        return materialDao.materialList(type, name, versionid, s, n);
    }

    @Override
    public List<String> materialType(String versionid) {
        return materialDao.materialType(versionid);
    }
    @Override
    public List<Map<String, Object>> materialListAll(String type,String name,String versionid){
        return materialDao.materialListAll(type,name,versionid);
    }
}
